package com.example.thegreatwall.service;

import java.util.List;
import com.example.thegreatwall.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

public interface UsersService extends IService<Users>{

    List<Users> findAll();

    /**
     * 微信小程序获取用户信息
     * @param openid
     * @return 用户对象
     */
    public Users findOrCreateUser(String openid);

    /**
     * 根据用户id获得opengId
     * @param userId 用户ID ????我的提交呢
     * @return
     */
    String getOpenIdByUserId(Long userId);

    int checkstatus(@Param("user_id")int user_id);
}
